OO design and programming promotes:
Handling problems and abstraction
Model is created. What is next?
Properties of Abstract Data Types
Importance of Data Structure Encapsulation
Importance of Data Structure Encapsulation
Importance of Data Structure Encapsulation
Abstract data types and object-orientation
Implementation of ADT:
Step 1: Instances definition
Implementation of ADT:
Step 2: set(1)
Implementation of ADT:
Step 2: set(1) (Cont.)
Implementation of ADT:
Step 3: add
Implementation of ADT:
Step 3: add (Cont.)
Objects and
Messages
How objects communicate?
Objects
How objects
communicate?
A-Kind-Of
relationship
Point class
A-Kind-Of
relationship
Circle class
A-Kind-Of
relationship
Comparison of Point and Circle
Illustration of “A-Kind-Of” relationship
Inheritance
and
part-of relationship
Inheritance and
is-a relationship
Relation between CLASS and STRUCT
How the methods know from which object they are invoked?
Initialisation of Point
class
Example